package cn.com.myspring.framework.context.support;

import cn.com.myspring.framework.beans.support.MYDefaultListableBeanFactory;

/**
 * @ClassName MYAbstractApplicationContext
 * @Description 抽象顶层类-提供refresh方法交由子类重写(精简)
 * @author LBQ
 * @Date 2019年6月11日 下午2:53:25
 * @version 1.0.0
 */
public abstract class MYAbstractApplicationContext {

    public void refresh() throws Exception{};
 
    private MYDefaultListableBeanFactory beanFactory;
    
    public final MYDefaultListableBeanFactory getBeanFactory() {
        return this.beanFactory;
    }
    
    protected void createBeanFactory() {
        this.beanFactory = new MYDefaultListableBeanFactory();
    }
    
}
